package com.fhz.fengmvvm.test;

import com.fhz.fengmvvm.user.Food;

/**
 * 时间:11/9/21
 *
 * @author msfeng
 * 简述: TODO
 */
public class MyResotiory {

    public Food getFoodRoom(){
        //
        Food food = new Food();
        food.setRet(110);
        return food;
    }


    public Food getFood(){
        //
        if(true){
            return getFoodRoom();
        }else{
            getFoodRemote();
        }
        return null;
    }

    public void getFoodRemote(){
        //
    }
}
